<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{sysCompanyNewsBean.page}"/>
		<f:event type="preRenderView" listener="#{sysCompanyNewsBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sys Company News entities"/>

	<ui:define name="header">
		Sys Company News
	</ui:define>

	<ui:define name="subheader">
		Search Sys Company News entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="sysCompanyNewsBeanExampleComNewsNo" value="Com News No:"/>
						<h:panelGroup>
							<h:inputText id="sysCompanyNewsBeanExampleComNewsNo" value="#{sysCompanyNewsBean.example.comNewsNo}"/>
							<h:message for="sysCompanyNewsBeanExampleComNewsNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCompanyNewsBeanExampleHrEmp" value="Hr Emp:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{hrEmpBean.converter}" id="sysCompanyNewsBeanExampleHrEmp" value="#{sysCompanyNewsBean.example.hrEmp}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sysCompanyNewsBeanExampleHrEmp" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCompanyNewsBeanExampleSysCompany" value="Sys Company:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysCompanyBean.converter}" id="sysCompanyNewsBeanExampleSysCompany" value="#{sysCompanyNewsBean.example.sysCompany}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCompanyBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sysCompanyNewsBeanExampleSysCompany" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCompanyNewsBeanExampleComNewsHeader" value="Com News Header:"/>
						<h:panelGroup>
							<h:inputText id="sysCompanyNewsBeanExampleComNewsHeader" maxLength="300" value="#{sysCompanyNewsBean.example.comNewsHeader}"/>
							<h:message for="sysCompanyNewsBeanExampleComNewsHeader" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysCompanyNewsBeanExampleComNewsDetail" value="Com News Detail:"/>
						<h:panelGroup>
							<h:inputText id="sysCompanyNewsBeanExampleComNewsDetail" maxLength="1000" value="#{sysCompanyNewsBean.example.comNewsDetail}"/>
							<h:message for="sysCompanyNewsBeanExampleComNewsDetail" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{sysCompanyNewsBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{sysCompanyNewsBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="sysCompanyNewsBeanPageItems" styleClass="data-table" value="#{sysCompanyNewsBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Com News No"/>
					</f:facet>
					<h:link outcome="/sysCompanyNews/view">
						<f:param name="id" value="#{_item.comNewsNo}"/>
						<h:outputText id="itemComNewsNo" value="#{_item.comNewsNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{sysCompanyNewsBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
